package com.utils.failureanalysis.data.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class FilePathUtil {
    public static FilePathUtil filePathUtil=new FilePathUtil();
    SimpleDateFormat sf=new SimpleDateFormat("yyyy-MM-dd HHmmss");

    public String getResultExcelPath(){
        String path="d:\\failures_"+getFormatDate()+".xls";
        return path;
    }

    public String getCountResultExcelPath(){
        String path="d:\\count_"+getFormatDate()+".xls";
        return path;
    }

    public String getFormatDate(){
        String date=sf.format(new Date());
        return date;
    }
}
